import request from '@/utils/request'
import {HOST} from '@/constants'
import qs from 'qs'
import da from "element-ui/src/locale/lang/da";


export function teacherQueryApplication(data) {
  return request({
    url: `${HOST}/queryApplication`,
    method: 'get',
    params: data
  })
}

export function teacherQueryAllAward(data) {
  return request({
    url: `${HOST}/queryAllAward`,
    method: 'get',
    params: data
  })
}

export function teacherQueryOneApplication(data) {
  return request({
    url: `${HOST}/queryOneApplication/${data}`,
    method: 'get',
  })
}

export function teacherQueryPaper(data) {
  return request({
    url: `${HOST}/query/${data}`,
    method: 'get',
  })
}

export function teacherIssueAward(data) {
  return request({
    url: `${HOST}/issue`,
    method: 'post',
    data
  })
}

export function teacherCheckApplication(data) {
  return request({
    url: `${HOST}/updateApplication`,
    method: 'post',
    data: qs.stringify(data)
  })
}

export function enrollAdmin(data) {
  return request({
    url: `${HOST}/enrollAdmin`,
    method: 'get',
    data: qs.stringify(data)
  })
}


